package com.kingdee.pda.plugins.http.common.coreprogress;

import com.kingdee.pda.plugins.http.common.HttpDownloadInvoker;

/**
 * 进度回调接口，比如用于文件上传与下载
 *
 * @author ZhuHuaHua
 * @date 2016/10/23 18:12
 */
public interface ProgressListener {
    void onProgress(long currentBytes, long contentLength, boolean done);
    void onFail(HttpDownloadInvoker.HttpCode code, String content);
}